package com.xixilala.simple_use;


import android.content.Intent;
import android.os.Bundle;
import android.provider.Settings;

import androidx.appcompat.app.AppCompatActivity;

import com.google.android.material.textfield.TextInputEditText;

public class MainActivity extends AppCompatActivity {

    private TextInputEditText password;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        if(!InstallerHelperService.isAlive) {
            Intent intent = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS);
            startActivity(intent);
        }
        //1.判断是否开了无障碍开关
//        1.1监听安装完成
//        2.跳转权限设置页
//        3.修改应用列表权限
//        4.修改剪切板权限
//        5.关闭权限页

//        1.1

        //2
//        Intent intent = new Intent();
//        intent.setAction(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
//        intent.setData(Uri.parse("package:" + this.getPackageName()));
//        startActivity(intent);

//        3.


    }

}
